<template>
  <div id="questions">
    <div class="ques_header"></div>
    <!-- // 心事 -->
    <div class="heartThings">
      <div class="heart">
        <div class="heart_header">
          <img src="../../assets/img/questions/tubiao.png" alt="" />
          <p>心事群</p>
        </div>
        <p>更多</p>
      </div>
      <!-- 图片 -->
      <div class="picture">
        <a href=""
          ><img
            src="../../assets/img/questions/pic1.png"
            alt=""
            class="nostudy"
        /></a>
        <div class="pic_right">
          <a href=""
            ><img src="../../assets/img/questions/pic2.png" alt=""
          /></a>
          <a href=""
            ><img src="../../assets/img/questions/pic3.png" alt=""
          /></a>
        </div>
      </div>
      <div class="top">
        <div class="top_center">
          <em>置顶</em>
          <span>当前还没有置顶心事</span>
        </div>
      </div>
      <!-- 问答 -->
      <questions></questions>
    </div>
    <Footer></Footer>
  </div>
</template>

<script>
// import { reactive } from "vue";
// import { Toast } from "vant";
import questions from "../../components/Questions/questions.vue";
import Footer from "../../components/public/Footer.vue";
export default {
  // setup() {
  //   const state = reactive({
  //     loading: false,
  //   });
  //   const onRefresh = () => {
  //     setTimeout(() => {
  //       Toast("刷新成功");
  //       state.loading = false;
  //     }, 1000);
  //   };

  //   return {
  //     state,
  //     onRefresh,
  //   };
  // },
  components: { Footer, questions },
};
</script>

<style lang="less" scoped>
body,
html {
  width: 100%;
  height: 100%;
}
#questions {
  width: 100%;
  height: 100%;
  .ques_header {
    width: 375px;
    height: 160px;
    background-image: url(../../assets/img/questions/beijing.png);
    background-size: cover;
  }
  // 心事
  .heartThings {
    .heart {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 28px 13px 0 10px;
      .heart_header {
        display: flex;
        align-items: center;

        img {
          width: 22px;
          height: 22px;
        }
        p {
          font-size: 15px;
          font-family: PingFang SC;
          font-weight: bold;
          color: #585858;
        }
      }
      > p {
        font-size: 10px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #a9a9a9;
        width: 37px;
        height: 17px;
        border: 1px solid #cccccc;
        border-radius: 9px;
        text-align: center;
        line-height: 17px;
      }
    }
    // 图片
    .picture {
      margin: 12px;
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      .nostudy {
        width: 240px;
        height: 160px;
      }
      .pic_right {
        a img {
          width: 111px;
          height: 81px;
        }
      }
    }
    // 置顶
    .top {
      width: 375px;
      height: 45px;
      background: #f4f4f4;
      overflow: hidden;
      .top_center {
        width: 350px;
        height: 25px;
        background: #ffffff;
        border-radius: 12px;
        line-height: 25px;
        text-align: left;
        margin: auto;
        margin-top: 10px;

        em {
          font-size: 11px;
          font-family: PingFang SC;
          font-weight: bold;
          color: #faa462;
          margin-right: 11px;
          margin-left: 13px;
        }
        span {
          font-size: 11px;
          font-family: PingFang SC;
          font-weight: bold;
          color: #949494;
        }
      }
    }
    // 问答
  }
}
</style>
